package com.example.module_mine.repository

import com.example.module_mine.http.MineApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class LoginRepository @Inject constructor(private val mineApi: MineApi) {
    fun sendLoginCode() = flow {
        emit(mineApi.sendLoginCode())
    }.flowOn(Dispatchers.IO)
}